# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>

# The group tag is just to easily find this APKBUILD by some scripts for automation
# group=asteroid
pkgname=asteroid-camera
pkgver=2.0.0
pkgrel=0
pkgdesc="Default camera app for AsteroidOS"
url="https://github.com/AsteroidOS/asteroid-camera"
# armhf blocked by extra-cmake-modules
arch="all !armhf"
license="GPL-3.0-or-later"
depends="mapplauncherd"
makedepends="
	extra-cmake-modules
	qml-asteroid-dev
	qt5-qtbase-dev
	qt5-qtdeclarative-dev
	qt5-qtmultimedia-dev
	"
source="$pkgname-$pkgver.tar.gz::https://github.com/AsteroidOS/asteroid-camera/archive/refs/tags/$pkgver.tar.gz"
options="!check" # No tests

build() {
	cmake -B build \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
1b09ea8fbb6d94d6b793ca83675cbd4282d07c5dc2ffabed025227e9a8a3072c187226c653c630aeb2d51721bcb71d69dbf67c9f4e2bb79f230f07e4bf260194  asteroid-camera-2.0.0.tar.gz
"
